package com.siwei.mes.entity.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 角色(Role)实体类
 *
 * @author linzi
 * @since 2023-11-25 22:41:01
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_role")
@ApiModel(value = "Role", description = "角色")
public class Role implements Serializable {
    private static final long serialVersionUID = 496950188173930209L;
    /**
     * 角色id
     */
    @Id
    @ApiModelProperty(value = "角色主键ID", name = "id")
    private Long id;
    /**
     * 角色名称
     */

    @Column(name = "role_name")
    @ApiModelProperty(value = "角色名称", name = "roleName")
    private String roleName;
    /**
     * 状态  1-正常 0-作废
     */

    @Column(name = "status")
    @ApiModelProperty(value = "状态  1-正常 0-作废", name = "status")
    private Integer status;
    /**
     * 创建人
     */

    @Column(name = "creater")
    @ApiModelProperty(value = "创建人", name = "creater")
    private Long creater;
    /**
     * 创建时间
     */

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    /**
     * 修改人
     */

    @Column(name = "updater")
    @ApiModelProperty(value = "修改人", name = "updater")
    private Long updater;
    /**
     * 更新时间
     */

    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;
    /**
     * 是否删除  1-删除
     */

    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除  1-删除", name = "isDel")
    private Integer isDel;
}
